export default [
	{
		path: "/", //路由K必须小写
		component: () => import("../views/home/index.vue"),
		//命名路由
		redirect: "/home",
	},
	{
		path: "/home", //路由K必须小写
		component: () => import("../views/home/index.vue"),
		name: "home",
		redirect: "/home/bannerbottomrec",
		children: [
			{
				path: "bannerbottomrec", //路由K必须小写
				component: () =>
					import("../views/home/banner/bannerBottomRec/index.vue"),
				name: "bannerbottomrec",
			},
			{
				path: "bannerbottompag", //路由K必须小写
				component: () =>
					import("../views/home/banner/bannerBottomPag/index.vue"),
				name: "bannerbottompag",
			},
		],
	},
	{
		path: "/my", //路由K必须小写
		component: () => import("../views/my/index.vue"),
		name: "my",
		redirect: "/my/dynamicresources",
		children: [
			{
				path: "dynamicresources", //路由K必须小写
				component: () => import("../views/my/DynamicResources/index.vue"),
				name: "DynamicResources",
			},
			{
				path: "myInformation", //路由K必须小写
				component: () => import("../views/my/MyInformation/index.vue"),
				name: "MyInformation",
			},
			{
				path: "myvip", //路由K必须小写
				component: () => import("../views/my/MyVip/index.vue"),
				name: "MyVip",
			},
		],
	},
	{
		path: "/room", //路由K必须小写
		component: () => import("../views/room/index.vue"),
		name: "room",
		redirect: "/room/myroom",
		children: [
			{
				path: "myroom", //路由K必须小写
				component: () => import("../views/room/roomItem/myroom.vue"),
				name: "myroom",
			},
			{
				path: "store", //路由K必须小写
				component: () => import("../views/room/roomItem/store.vue"),
				name: "store",
			},
			{
				path: "history", //路由K必须小写
				component: () => import("../views/room/roomItem/history.vue"),
				name: "history",
			},
		],
	},
	{
		path: "/course",
		component: () => import("../views/course/index.vue"),
		name: "course",
		redirect: "/course/vip",
		children: [
			{
				path: "vip",
				component: () => import("../views/course/vip/index.vue"),
				name: "vip",
			},
			{
				path: "theme",
				component: () => import("../views/course/theme/index.vue"),
				name: "theme",
			},
			{
				path: "particulars",
				component: () => import("../views/course/particulars/index.vue"),
				name: "particulars",
			},
			{
				path: "video",
				component: () => import("../views/course/video/index.vue"),
				name: "video",
			},
			{
				path: "live",
				component: () => import("../views/course/live/index.vue"),
				name: "live",
			},
		],
	},
	{
		path: "/player",
		component: () => import("../views/player/index.vue"),
		name: "player",
	},
	{
		path: "/advertisement",
		component: () => import("../views/home/advertisement/index.vue"),
		name: "advertisement",
	},
	{
		path: "/center",
		component: () => import("../views/center/index.vue"),
		name: "center",
	},
	{
		path: "/:pathMatch(.*)",
		name: "404",
		component: () => import("../views/error/404.vue"),
		meta: {
			hidden: true,
		},
	},
]
//任意路由
// export const anyRoute = {
//   path: "/:pathMatch(.*)",
//   name: "Any",
//   redirect: "/404",
//   meta: {
//     hidden: true,
//   },
// };
